package mr.fresh.api.controller.manaage.good;

import mr.fresh.api.CommonResult;
import mr.fresh.entity.request.FindListGoodRequest;
import mr.fresh.entity.request.SaveGoodRequest;

/**
 * @CLassName FreshMangaeController
 * @Description 后台项目api
 * @Author mr.jl
 * @Date 2019/5/27 21:47
 * @Version 1.0
 **/

public interface FreshGoodsControllerApi {

    /**
     * @Description: 商品查询接口
     * @Param: [model]查询的条件
     * @return: mr.fresh.api.CommonResult
     * @Author: Mr.jl
     * @Date: 2019/5/27
     */
    public CommonResult findlist(FindListGoodRequest model);

    /**
     * @Description: 保商的接口
     * @Param: [model] 商品的信息
     * @return: mr.fresh.api.CommonResult
     * @Author: Mr.jl
     * @Date: 2019/6/7
     */
    public CommonResult saveGood(SaveGoodRequest model);


    /**
     * @Description: 根据id删除
     * @Param: [id]
     * @return: mr.fresh.api.CommonResult
     * @Author: Mr.jl
     * @Date: 2019/6/8
     */
    public CommonResult findById(Long id);

    /**
     * @Description:
     * @Param: [id]
     * @return: mr.fresh.api.CommonResult
     * @Author: Mr.jl
     * @Date: 2019/6/8
     */
    public CommonResult deleteById(Long id);

}
